package com.wolfstreet.wsonline.bean;

import android.content.Context;
import android.content.Intent;

import com.wolfstreet.wsonline.MainActivity;

public class JumpRunnable implements Runnable {

	public Context context;

	public JumpRunnable(Context context) {
		this.context = context;
	}

	@Override
	public void run() {
		Intent intent = new Intent(context, MainActivity.class);
		intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK
				| Intent.FLAG_ACTIVITY_NEW_TASK);
		intent.putExtra("isKill", true);
		context.startActivity(intent);
	}

}